import request from '@/utils/request'

/**
 * 登录请求
 * @param {*} data 登录请求传递的数据 mobile  password
 * @returns
 */
export function reqLogin(data) {
  return request({
    method: 'post',
    url: '/sys/login',
    data
  })
}

export const reqGetUserInfo = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

export const reqGetUserDetailInfo = (id) => request({
  url: `/sys/user/${id}`
})
